<%@page import="org.apache.log4j.Logger"%>
<%@page import="sun.util.logging.resources.logging"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.apache.commons.collections.MapIterator" %>
<%@ page import="org.apache.commons.collections.map.ListOrderedMap" %>
<%@ page import = "java.util.*,com.ibatis.sqlmap.client.SqlMapClient,com.meetablog.util.SqlMapConfig" %>
				   
<%
	Logger logger = Logger.getLogger(request.getRequestURI());

	logger.debug("TEST");
	
	//--	검색조건 세팅 start
	HashMap param = new HashMap();	//	검색조건을 담을 해쉬맴 (key, value);
	SqlMapClient sqlMap =  SqlMapConfig.getSqlMapClient();

	ArrayList rs = 	(ArrayList)sqlMap.queryForList("Test.selectTestList",param);	//	실행할 SQL ID, 검색조건(없을경우 null)
	
%>		

getDataSource : <%=sqlMap.getDataSource()%>

		    
<table border="1">
	<tr>
		<th>PROD_NM</th>
	</tr>
<%
	for( int i = 0 ; i < rs.size() ; i++){
%>
	<tr>
		<td><%=((HashMap)rs.get(i)).get("NAME") %></td>
	</tr>
<%		
	}
%>


	</table>
</html>